/* 登录模态框样式 */
.login-modal {
  .ant-modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff, #f5f9ff);
    border: 1px solid rgba(137, 196, 244, 0.2);
  }

  .ant-modal-body {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 100%;
    width: 100%;
    background: transparent;
  }
  
  /* 输入框相关样式统一处理 */
  .ant-input-affix-wrapper,
  .ant-input-password {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid #d0e1f9;
    border-radius: 8px;
    background-color: #f8faff;
    transition: all 0.3s;
    
    &:hover {
      border-color: #5d9cec;
    }
    
    &:focus,
    &-focused {
      border-color: #4a89dc;
      box-shadow: 0 0 0 2px rgba(74, 137, 220, 0.2);
      background-color: #ffffff;
    }
  }
  
  .ant-input-affix-wrapper > input.ant-input,
  .ant-input-password .ant-input {
    height: 40px;
    padding: 0;
    line-height: 40px;
    background-color: transparent;
    color: #2c3e50;
  }
  
  .ant-input::placeholder {
    line-height: normal;
    vertical-align: middle;
    color: #a0aec0;
  }
  
  .ant-input-prefix,
  .ant-input-suffix {
    display: flex;
    align-items: center;
    color: #5d9cec;
  }
}

.login-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.9));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 137, 220, 0.1);
}

.close-button {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 16px;
  color: #a0aec0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;

  &:hover {
    color: #4a89dc;
    background-color: rgba(74, 137, 220, 0.1);
    transform: rotate(90deg);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
  margin-top: 25px;
  position: relative;

  &:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4a89dc, #5d9cec);
    border-radius: 3px;
  }

  .login-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    
    &:hover {
      transform: scale(1.05);
    }
  }

  .login-title {
    color: #1e5799;
    font-size: 22px;
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0.5px;
  }
}

.login-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(208, 225, 249, 0.6);
  margin-left: 30px;
  margin-right: 30px;
  position: relative;

  .login-tab {
    flex: 1;
    display: flex;
    justify-content: center;
    background-color: transparent;
  }

  .login-tab-item {
    padding: 0 5px 12px;
    text-align: center;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #7f8c9a;
    transition: all 0.3s;
    position: relative;
    
    &:after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 0;
      height: 3px;
      background: linear-gradient(90deg, #4a89dc, #5d9cec);
      border-radius: 3px;
      transition: width 0.3s ease;
    }

    &:hover {
      color: #4a89dc;
    }

    &.active {
      color: #1e5799;
      font-weight: 600;
      
      &:after {
        width: 100%;
      }
    }
  }
}

.login-form-container {
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
  box-sizing: border-box;
  
  .ant-form-item {
    margin-bottom: 16px;
    width: 100%;
  }
  
  .ant-form {
    width: 100%;
  }
  
  .login-input {
    height: 42px;
    padding: 8px 16px;
    color: #2d3748;
    border: 1px solid #d0e1f9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    line-height: 24px;
    background-color: #f8faff;
    
    &:focus {
      border-color: #4a89dc;
      box-shadow: 0 0 0 2px rgba(74, 137, 220, 0.2);
      background-color: #ffffff;
    }
  }
  
  .login-button {
    margin-bottom: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #4a89dc, #1e5799);
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: block;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.2);
    
    &:hover {
      background: linear-gradient(135deg, #5d9cec, #2b6fc2);
      transform: translateY(-1px);
      box-shadow: 0 6px 12px rgba(30, 87, 153, 0.25);
    }
    
    &:active {
      transform: translateY(1px);
      box-shadow: 0 2px 8px rgba(30, 87, 153, 0.2);
    }
  }
}

.login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-bottom: 15px;
  
  .login-action-button {
    color: #4a89dc;
    background-color: transparent;
    border: none;
    font-weight: 500;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    
    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: linear-gradient(90deg, #4a89dc, #5d9cec);
      transition: width 0.3s ease;
    }
    
    &:hover {
      color: #1e5799;
      
      &:after {
        width: 100%;
      }
    }
  }
}

.qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 20px 0;
  
  .qrcode-content {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    .qrcode-wrapper {
      width: 180px;
      height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      margin-bottom: 15px;
      padding: 10px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 5px 15px rgba(74, 137, 220, 0.1);
      border: 1px solid rgba(208, 225, 249, 0.6);
      
      &:before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        background: linear-gradient(135deg, #4a89dc, #5d9cec, #4a89dc);
        border-radius: 15px;
        z-index: -1;
        opacity: 0.3;
      }
      
      .qrcode-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
      }
    }
    
    .qrcode-tip {
      text-align: center;
      color: #1e5799;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 500;
      margin-top: 5px;
    }
  }
  
  .qrcode-separator {
    display: flex;
    align-items: center;
    color: #5d9cec;
    font-size: 14px;
    margin: 25px 0;
    width: 80%;
    
    &:before,
    &:after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, rgba(208, 225, 249, 0.2), rgba(74, 137, 220, 0.4), rgba(208, 225, 249, 0.2));
    }
    
    &:before {
      margin-right: 15px;
    }
    
    &:after {
      margin-left: 15px;
    }
  }
  
  .qrcode-methods {
    display: flex;
    justify-content: center;
    height: 70px;
    gap: 25px;
    
    .qrcode-method-button {
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: linear-gradient(to bottom, #ffffff, #f5f9ff);
      border: 1px solid rgba(208, 225, 249, 0.8);
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 3px 8px rgba(74, 137, 220, 0.1);
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(74, 137, 220, 0.15);
        border-color: rgba(93, 156, 236, 0.8);
      }
      
      &.active {
        border-color: #4a89dc;
        background: linear-gradient(to bottom, #f5f9ff, #e1ebfa);
        box-shadow: 0 3px 10px rgba(74, 137, 220, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.8);
      }
      
      .qrcode-method-icon {
        width: 28px;
        height: 28px;
        transition: transform 0.3s;
      }
      
      &:hover .qrcode-method-icon {
        transform: scale(1.1);
      }
    }
  }
} 